import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    active: 0,
    city: {
      cityId: 440300,
      isHot: 1,
      name: "深圳",
      pinyin: "shenzhen",
    }
  },
  getters: {
  },
  mutations: {
    changeActive(state, index) {
      // console.log(1, index);
      state.active = index
    },
    changeCity(state,payload){
      state.city = payload
    }
  },
  actions: {
  },
  modules: {
  }
})
